package class1.s2022350143028.model;

import base.model.GoodsBaseModel;

/**
 * 商品模型
 *
 * @author Kcjuly
 * @date 2024-04-25
 *
 * 属性：商品编号、商品名称、规格、单价、库存数量
 * 字段：goodId、goodName、specifications、price、inventory
 */

public class GoodsModel extends GoodsBaseModel {

//    protected String goodId; //已有属性
//
//    protected String goodName;
//
    public String specifications;
    public int price;
    public int inventory;

    //    public void setGoodId(String goodId) {this.goodId = goodId;}

    //    public void setGoodName(String goodName) {this.goodName = goodName;}
    public void setSpecifications(String s){this.specifications=s;}
    public void setPrice(int price){this.price=price;}
    public void setinventory(int number){this.inventory=number;}

//    public void setGoodId(String goodid){this.goodId=goodid;}

//    public void setGoodId() {
//        String head="G";
//        Random rand =new Random();
//        int number = rand.nextInt(9000) + 1000;
//        String s=String.valueOf(number);
//        goodId=s;
//    }

//    public String getGoodId() {return goodId;}
//
//    public String getGoodName() {return goodName;}

    public String getSpecifications(){return specifications;}
    public int getPrice(){return price;}
    public int getInventory(){return inventory;}



    //todo 其余属性字段，需要继承完善
}
